close all; clear; clc;

RandStream.setDefaultStream(RandStream('mt19937ar','seed',sum(100*clock)));

iter = 1000;

layerSizes = [16 200 200 1];

weights = initWeights(layerSizes, 0.05);

% 69230
weights = performSupervisedLearn(weights, 0, 0.3, 1E-4, 69230, 1000, 1);

prviScore = checkNetwork(weights, iter)

weights = performSupervisedLearn(weights, 0, 0.4, 1E-5, 138465, 1000, 0);                    

drugiScore = checkNetwork(weights, iter)

weights = performQLearn(weights, 0, 0.4, 3e-5, 0.005, 253850, 1000, 1 : 7);

treciScore = checkNetwork(weights, iter)

prviScore
drugiScore
treciScore
